package edu.ptu.springboot04.mapping;

import edu.ptu.springboot04.domain.entity.Category;
import edu.ptu.springboot04.domain.vo.CategoryVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @BelongsProject: springboot04
 * @BelongsPackage: edu.ptu.springboot04.mapping
 * @Author: HYJ
 * @CreateTime: 2025-03-22  22:46
 * @Description: TODO
 * @Version: 1.0
 */
@Mapper
public interface CategoryMapping {
    CategoryMapping INSTANCE = Mappers.getMapper(CategoryMapping.class);

    List<CategoryVo> toCategoryVo(List<Category> category);
}
